package com.soen341.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.soen341.dao.RegHistoryDao;
import com.soen341.model.Course;
import com.soen341.service.RegHistoryService;

//--------------------------------------------------------------------------------------------------------------------------------
/**
* Provides implementation for services around the {@link RegHistory} entity.
*/
//--------------------------------------------------------------------------------------------------------------------------------
@Service("regHistoryService")
public class RegHistoryServiceImpl implements RegHistoryService
{
	@Autowired
	private RegHistoryDao regHistoryDao;

	//--------------------------------------------------------------------------------------------------------------------------------
	/**
	 * Sets the underlying SequenceDao implementation to be used by the services.
	 */
	//--------------------------------------------------------------------------------------------------------------------------------
	public void setRegHistoryDao(RegHistoryDao regHistoryDao)
	{
		this.regHistoryDao = regHistoryDao;
	}

	// -------------------------------------------------------------------------------
	@Transactional(readOnly = true)
	public List<Course> loadCompletedCourses()
	{
//		List<Course> completedCourses = regHistoryDao.loadCompleted();
		return null;
	}

	// -------------------------------------------------------------------------------
	@Transactional(readOnly = true)
	public List<Course> loadRegisteredCourses()
	{
//		List<Course> registeredCourses = regHistoryDao.loadRegistered();
		return null;
	}

	// -------------------------------------------------------------------------------
	@Transactional(readOnly = true)
	public List<Course> loadAvailableCourses()
	{
//		List<Course> availableCourses = regHistoryDao.loadAvailable();
		return null;
	}
}
